package com.hejjon.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hejjon.bean.LibrarySettingParam;
import com.hejjon.core.domain.entity.LibrarySetting;
import com.hejjon.domain.vo.LibrarySettingItemVO;
import com.hejjon.domain.vo.LibrarySettingVO;

import java.util.Map;

/**
 * 知识对象节点配置
 */
public interface ILibrarySettingService extends IService<LibrarySetting> {


    /**
     * 根据名称获取设置项
     */
    LibrarySettingItemVO getLibrarySettingItem(String settingName);

    /**
     * 获取初始化的设置项 map
     * @return map
     */
    Map<String,LibrarySettingItemVO> getLibraryInitSettingsMap();



    /**
     * 保存配置
     */
    boolean saveSetting(LibrarySettingParam param);


    /**
     * 获取知识对象节点配置
     * @param nodeId 知识对象节点ID
     */
    LibrarySettingVO getByNodeId(String nodeId);



}
